<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="myStyle.css" media="screen" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js">
</script>
<script type="text/javascript">

$(document).ready
	(
			function()
			{
				$("#button1").click(function (){$("#mydiv1").fadeIn(3000);});
				$("#button2").click(function (){$("#mydiv1").fadeOut(3000);});
			}
	);
</script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
This is my page. 
<br><br>

<jsp:useBean id="buton1" class="com.mypkg.beans.ButtonBean" />
<jsp:setProperty property="value" name="buton1" value="Do the magic"/>
<jsp:setProperty property="idBut" name="buton1" value="button1"/>
<%= buton1.render() %>

<br>

<jsp:useBean id="buton2" class="com.mypkg.beans.ButtonBean" />
<jsp:setProperty property="value" name="buton2" value="Oaaaaaaaa"/>
<jsp:setProperty property="idBut" name="buton2" value="button2"/>
<jsp:setProperty property="someAttribs" name="buton2" value="class='butonFain'"/>
<br>
<jsp:useBean id="div1" class="com.mypkg.beans.DivBean" />
<jsp:setProperty property="someAttribs" name="div1" value="style='width:120px;height:120px;display:none;background-color:blue;'" />
<jsp:setProperty property="value" name="div1" value="<%= \"<br>\" + buton2.render()%>"/>
<jsp:setProperty property="idDiv" name="div1" value="mydiv1"/>
<%= div1.render() %>
</body>
</html>